package com.zlx.mall.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.Instant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品订单
 * </p>
 *
 * @author xiatian
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("`sc_goods_order`")
public class ScGoodsOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /** PK,AI */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Long id;
    /** 用户ID */
    @TableField("`user_id`")
    private Long userId;
    /** 订单编号 */
    @TableField("`order_no`")
    private String orderNo;
    /** 订单状态:0-已提交，1-待收货，2-已完成，3-已取消 */
    @TableField("`status`")
    private Integer status;
    /** 备注描述 */
    @TableField("`remark`")
    private String remark;
    /** 发货方式0-立即发货，1-交房后发货 */
    @TableField("`delivery_method`")
    private String deliveryMethod;
    /** 完成时间 */
    @TableField("`compete_time`")
    private Instant competeTime;
    /** 删除状态 {0-exist !0-deleted} */
    @TableField("`is_delete`")
    private Long isDelete;
    /** 创建时间 */
    @TableField("`create_timestamp`")
    private Instant createTimestamp;
    /** 修改时间 */
    @TableField("`modify_timestamp`")
    private Instant modifyTimestamp;
    /** 创建人id */
    @TableField("`create_operator_id`")
    private Long createOperatorId;
    /** 修改人id */
    @TableField("`modify_operator_id`")
    private Long modifyOperatorId;

    /** PK,AI */
    public static final String ID = "id";
    /** 用户ID */
    public static final String USER_ID = "user_id";
    /** 订单编号 */
    public static final String ORDER_NO = "order_no";
    /** 订单状态:0-已提交，1-待收货，2-已完成，3-已取消 */
    public static final String STATUS = "status";
    /** 备注描述 */
    public static final String REMARK = "remark";
    /** 发货方式0-立即发货，1-交房后发货 */
    public static final String DELIVERY_METHOD = "delivery_method";
    /** 完成时间 */
    public static final String COMPETE_TIME = "compete_time";
    /** 删除状态 {0-exist !0-deleted} */
    public static final String IS_DELETE = "is_delete";
    /** 创建时间 */
    public static final String CREATE_TIMESTAMP = "create_timestamp";
    /** 修改时间 */
    public static final String MODIFY_TIMESTAMP = "modify_timestamp";
    /** 创建人id */
    public static final String CREATE_OPERATOR_ID = "create_operator_id";
    /** 修改人id */
    public static final String MODIFY_OPERATOR_ID = "modify_operator_id";
}
